package com.fosss.band.mapper;

import com.fosss.band.entity.Band;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: fosss
 * Date: 2023/12/27
 * Time: 20:32
 * Description:
 */
@Mapper
public interface BandMapper {
    List<Band> selectByCondition(@Param("name") String name);

    void deleteById(@Param("id") Integer id);

    void insert(@Param("band") Band band);

    Band selectById(@Param("id") Integer id);

    void update(@Param("band") Band band);

    List<Band> selectBands(@Param("ids") List<Integer> ids);

    /**
     * 修改乐队人数
     */
    void updateMemberCount(@Param("bandId") Integer bandId, @Param("count") int count);
}
